/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2015 All Rights Reserved.
 */
package com.zb.util;

import com.aliyun.oss.ClientException;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.OSSException;
import com.aliyun.oss.model.OSSObject;

/**
 *
 * @author zhengbo.zb
 * @version $Id: OSSServiceClient.java, v 0.1 2015-09-22 17:42 zhengbo.zb Exp $
 */
public class OSSServiceClient extends OSSClient {
    public OSSServiceClient(String endpoint, String accessKeyId, String accessKeySecret) {
        super(endpoint, accessKeyId, accessKeySecret);
    }

    @Override
    public OSSObject getObject(String bucketName, String key)
            throws OSSException, ClientException {
        try {
            return super.getObject(bucketName, key);
        }catch (Exception e){
            return null;
        }
    }
}
